package com.mframe;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
import org.springframework.context.ApplicationContext;
import com.mframe.common.utils.spring.SpringBootUtils;


/**
 * 启动程序
 * 
 * @author mframe
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class,SecurityAutoConfiguration.class })
@MapperScan("com.mframe.*.mapper")
public class MframeApplication {
	public static void main(String[] args) {
		ApplicationContext applicationContext = SpringApplication.run(MframeApplication.class, args);
		SpringBootUtils.setApplicationContext(applicationContext);
		System.out.println("---------启动成功---------");
	}
}
